#pragma once
#include "../../test_type.h"
#include "../../../src/socket/TcpIoClient.h"
#include "../../../src/socket/TcpIoSocket.h"
#include <string>

namespace client
{
	using namespace LibTools;
	using namespace std;
	class Client
	{
	public:
		Client(CTcpIoClient* tcp, const char* addr, int port);
		~Client();
		void Start();
		
		static DWORD HandleConnect(CSockError ec, void* invoker);
	public:
		CTcpIoClient* _tcpService;
		int _port;
		string _addr;
		CTcpIoSocket _clientSock;
	};
}